#include "Interlocked.h"

#include <Windows.h>

namespace xgu{ namespace Threading{

int Interlocked::Increment( int& location )
{
	volatile LONG* p = reinterpret_cast<volatile LONG*>(&location);
	return ::InterlockedIncrement(p);
}

//long long Interlocked::Increment( long long& location )
//{
//	return ::InterlockedIncrement64(&location);
//}

}}
